package com.qf.controller;

import com.qf.dto.R;
import com.qf.pojo.SysScene;
import com.qf.service.SysSceneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * created by 赵文韬 on 2022/3/23 10:48
 */
@RestController
public class SysSceneController {
    private SysSceneService sysSceneService;
    @Autowired
    public void setSysSceneService(SysSceneService sysSceneService) {
        this.sysSceneService = sysSceneService;
    }

    @PostMapping("addscene")
    public R addScene(@RequestBody SysScene sysScene){
        sysSceneService.addSysScene(sysScene);
        return R.setOk(sysScene);
    }
}
